743a7dba9d0054f07808256d8cc4fb5e6a498748,chameleon/src/main/java/org/mariotaku/chameleon/view/ChameleonTextView.java,Appearance,setHandlerTint,#TextView#number#,123
Before Change
Object editor = getField(TextView.class, textView, "mEditor");
final Class<?> editorClass = Class.forName("android.widget.Editor");
setField(editorClass, editor, "mSelectHandleLeft", ChameleonUtils.createTintedDrawable(ContextCompat.getDrawable(textView.getContext(), mTextSelectHandleLeftRes), color));
setField(Class.forName("android.widget.Editor"), editor, "mSelectHandleRight", ChameleonUtils.createTintedDrawable(ContextCompat.getDrawable(textView.getContext(), mTextSelectHandleRightRes), color));
setField(Class.forName("android.widget.Editor"), editor, "mSelectHandleCenter", ChameleonUtils.createTintedDrawable(ContextCompat.getDrawable(textView.getContext(), mTextSelectHandleRes), color));
} catch (Exception e) {
// Ignore
After Change
int mTextSelectHandleRightRes = getIntField(TextView.class, textView, "mTextSelectHandleRightRes");
int mTextSelectHandleRes = getIntField(TextView.class, textView, "mTextSelectHandleRes");
Object editor = getField(TextView.class, textView, "mEditor");
if (editor != null) {
final Class<?> editorClass = Class.forName("android.widget.Editor");
setField(editorClass, editor, "mSelectHandleLeft", ChameleonUtils.createTintedDrawable(ContextCompat.getDrawable(textView.getContext(), mTextSelectHandleLeftRes), color));
setField(Class.forName("android.widget.Editor"), editor, "mSelectHandleRight", ChameleonUtils.createTintedDrawable(ContextCompat.getDrawable(textView.getContext(), mTextSelectHandleRightRes), color));
setField(Class.forName("android.widget.Editor"), editor, "mSelectHandleCenter", ChameleonUtils.createTintedDrawable(ContextCompat.getDrawable(textView.getContext(), mTextSelectHandleRes), color));
}
} catch (Exception e) {